import httpRequest from '@/utils/httpRequest'

export function fetchDeptTree (query) {
  return httpRequest({
    url: '/clientauth/dept/tree',
    method: 'get',
    params: query
  })
}

export function deptAppRoleList (deptId, appId) {
  return httpRequest({
    url: '/clientauth/role/roleList/' + deptId + '/' + appId,
    method: 'get'
  })
}

export function deptRoleList (deptId) {
  return httpRequest({
    url: '/clientauth/role/roleList/' + deptId,
    method: 'get'
  })
}
